<?php
/**
 * File htdocs/Aplication/Models/updateque.php ini berisi class Updateque
 *
 * PHP version 5.3
 *
 * @category Models
 * @package  Htdocs/Aplication/Models
 * @author   dio ratar <dio.22ratar@gmail.com>
 * @license  FamilyTree
 * (http://en.wikipedia.org/wiki/Proprietary_software)
 * @link     http://www.FamilyTree.dio22r.com/
 */

if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Class updateque merupakan class yang berisi perintah-perintah SQL 
 * yang digunakan untuk update.
 *
 * @category Models
 * @package  Htdocs/Aplication/Models
 * @author   dio ratar <dio.22ratar@gmail.com>
 * @license  FamilyTree
 * (http://en.wikipedia.org/wiki/Proprietary_software)
 * @link     http://www.FamilyTree.dio22r.com/
 */

class Updateque extends CI_Model
{
	public function __construct()
    {
    	parent::__construct();
    	
    	$this->load->model('db_access');
    }
    
    public function insert($table, $arrData)
    {
        $arrVal = $this->db_access->escape_input($arrData);
        
        $result = $this->db->insert_string($table, $arrData);
        
        return $result;
    }
    
    public function update($table, $arrData, $where)
    {
        $arrVal = $this->db_access->escape_input($arrData);
        
        $result = $this->db->update_string($table, $arrData, $where);
        
        return $query;
    }
    
}